package com.demo1;

import com.object.Car;

public class Demo {
    public static void main(String[] args) {
        Teacher teacher1 = new Teacher();
        teacher1.setName("林清杨");
        teacher1.setAge(25);
        teacher1.show();
        teacher1.teach();

        Teacher teacher2 = new Teacher("王博",30);
        teacher2.show();
        teacher2.teach();

        Car car = new Car("本田",139000);

        car.show();
    }
}
